/*
 **  ITSessionDesc.h
 **
 **  Copyright (c) 2002, 2003
 **
 **  Author: Fabian, Ujwal S. Sathyam
 **	     Initial code by Kiichi Kusama
 **
 **  Project: iTerm
 **
 **  Description: keeps track of the address book data.
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License as published by
 **  the Free Software Foundation; either version 2 of the License, or
 **  (at your option) any later version.
 **
 **  This program is distributed in the hope that it will be useful,
 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 **  GNU General Public License for more details.
 **
 **  You should have received a copy of the GNU General Public License
 **  along with this program; if not, write to the Free Software
 **  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#import <Cocoa/Cocoa.h>

@interface ITSessionDesc : NSObject <NSCopying, NSMutableCopying, NSCoding>
{
    NSMutableDictionary* _params;
}

- (id)init;
+ (ITSessionDesc*)defaultDesc;
+ (NSString*)defaultShell;
+ (NSString*)defaultLoginCommand;

+ (NSArray*)terminalTypes;

- (NSString*)name;
- (NSString*)command;
- (unsigned)encoding;
- (NSString*)terminalType; // vt100, xterm, xterm-color, rxvt, ansi
- (NSString*)directory;
- (NSFont*)font;
- (NSFont*)nonASCIIFont;
- (BOOL)isIdleKeepAliveEnabled;
- (unsigned char)idleKeepAliveCharacterCode;
- (BOOL)closeSessionWhenEnds;
- (BOOL)doubleWidthForNonASCIICharacters;
- (BOOL)deleteKeySendsBackspace;
- (NSColor*)foreColor;
- (NSColor*)backColor;
- (NSColor*)selectionColor;
- (NSColor*)boldColor;
- (NSColor*)ANSIBlackColor;
- (NSColor*)ANSIHilightBlackColor;
- (NSColor*)ANSIRedColor;
- (NSColor*)ANSIHilightRedColor;
- (NSColor*)ANSIGreenColor;
- (NSColor*)ANSIHilightGreenColor;
- (NSColor*)ANSIYellowColor;
- (NSColor*)ANSIHilightYellowColor;
- (NSColor*)ANSIBlueColor;
- (NSColor*)ANSIHilightBlueColor;
- (NSColor*)ANSIMagentaColor;
- (NSColor*)ANSIHilightMagentaColor;
- (NSColor*)ANSICyanColor;
- (NSColor*)ANSIHilightCyanColor;
- (NSColor*)ANSIWhiteColor;
- (NSColor*)ANSIHilightWhiteColor;

@end

@interface ITMutableSessionDesc : ITSessionDesc <NSCoding>
{
}

- (void)setName:(NSString*)set;
- (void)setCommand:(NSString*)set;
- (void)setEncoding:(unsigned)set;
- (void)setTerminalType:(NSString*)set;
- (void)setDirectory:(NSString*)set;
- (void)setFont:(NSFont*)set;
- (void)setNonASCIIFont:(NSFont*)set;
- (void)setIdleKeepAliveEnabled:(BOOL)set;
- (void)setIdleKeepAliveCharacterCode:(unsigned char)set;
- (void)setCloseSessionWhenEnds:(BOOL)set;
- (void)setDoubleWidthForNonASCIICharacters:(BOOL)set;
- (void)setDeleteKeySendsBackspace:(BOOL)set;
- (void)setForeColor:(NSColor*)set;
- (void)setBackColor:(NSColor*)set;
- (void)setSelectionColor:(NSColor*)set;
- (void)setBoldColor:(NSColor*)set;
- (void)setANSIBlackColor:(NSColor*)set;
- (void)setHighlightANSIBlackColor:(NSColor*)set;
- (void)setANSIRedColor:(NSColor*)set;
- (void)setHighlightANSIRedColor:(NSColor*)set;
- (void)setANSIGreenColor:(NSColor*)set;
- (void)setHighlightANSIGreenColor:(NSColor*)set;
- (void)setANSIYellowColor:(NSColor*)set;
- (void)setHighlightANSIYellowColor:(NSColor*)set;
- (void)setANSIBlueColor:(NSColor*)set;
- (void)setHighlightANSIBlueColor:(NSColor*)set;
- (void)setANSIMagentaColor:(NSColor*)set;
- (void)setHighlightANSIMagentaColor:(NSColor*)set;
- (void)setANSICyanColor:(NSColor*)set;
- (void)setHighlightANSICyanColor:(NSColor*)set;
- (void)setANSIWhiteColor:(NSColor*)set;
- (void)setHighlightANSIWhiteColor:(NSColor*)set;

@end